package com.think.admin.web.mapper;

import com.think.admin.model.dto.user.UserRoleDto;
import com.think.common.enums.IsDeleteEnum;
import com.think.common.enums.StateEnum;
import com.think.common.web.mapper.SuperMapper;
import com.think.dao.entity.UserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户角色表 Mapper 接口
 * </p>
 *
 * @author xwj
 * @since 2019-04-08
 */
public interface UserRoleMapper extends SuperMapper<UserRole> {

    /**
     * 查询所有用户角色列表
     *
     * @param stateEnum
     * @return
     */
    List<UserRoleDto> selectUserRoleList(
            @Param("stateEnum") StateEnum stateEnum,
            @Param("isDeleteEnum") IsDeleteEnum isDeleteEnum);

}
